import Vue from 'vue'
import Vuex from 'vuex'
import moduleHome from './Home.js'
import moduleMy from './my.js'
import moduleMyStores from './myStores.js'
import moduleOrder from './order.js'
import moduleSearch from './search.js'
import moduleLiang from './my-liang.js'
Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    // 首页模块
    m_home: moduleHome,
    // 我的模块
    m_my: moduleMy,
    // 我的商圈模块
    m_myStores: moduleMyStores,
    // 订单模块
    m_order: moduleOrder,
    // 搜索模块
    m_search: moduleSearch,
    m_liang: moduleLiang
  }
})

export default store
